* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  color: #333;
}

.breathing-container {
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.breathing-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.breathing-header h1 {
  font-size: 24px;
  font-weight: 600;
}

.close-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 32px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  line-height: 1;
  padding: 0;
}

.close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.breathing-content {
  padding: 30px;
}

.timer-section {
  text-align: center;
  margin-bottom: 30px;
}

.timer-display {
  font-size: 48px;
  font-weight: 700;
  color: #667eea;
  margin-bottom: 20px;
  font-variant-numeric: tabular-nums;
}

.timer-controls {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.control-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  background: #f0f0f0;
  color: #333;
}

.control-btn.primary {
  background: #667eea;
  color: white;
}

.control-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.control-btn.primary:hover {
  background: #5568d3;
}

.breathing-circle-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 40px 0;
  min-height: 300px;
}

.breathing-circle {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s ease-in-out;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.breathing-circle.inhale {
  animation: expand 4s ease-in-out;
}

.breathing-circle.hold {
  animation: pulse 7s ease-in-out;
}

.breathing-circle.exhale {
  animation: contract 8s ease-in-out;
}

.circle-inner {
  color: white;
  font-size: 20px;
  font-weight: 600;
  text-align: center;
}

@keyframes expand {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.5);
  }
}

@keyframes contract {
  0% {
    transform: scale(1.5);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1.5);
  }
  50% {
    transform: scale(1.6);
  }
}

.instructions-section {
  margin-top: 30px;
}

.instructions-section h2 {
  font-size: 20px;
  color: #333;
  margin-bottom: 15px;
}

.instructions-content {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 20px;
}

.instruction-step {
  margin-bottom: 15px;
  padding: 15px;
  border-radius: 8px;
  background: white;
  border-left: 4px solid transparent;
  transition: all 0.3s;
}

.instruction-step:last-child {
  margin-bottom: 0;
}

.instruction-step.active {
  border-left-color: #667eea;
  background: #f0f4ff;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.instruction-step h3 {
  font-size: 16px;
  color: #333;
  margin-bottom: 8px;
}

.instruction-step p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

.breathing-stats {
  display: flex;
  justify-content: space-around;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 2px solid #f0f0f0;
}

.stat-item {
  text-align: center;
}

.stat-label {
  display: block;
  font-size: 12px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 5px;
}

.stat-value {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: #667eea;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  body {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  }

  .breathing-container {
    background: #1e1e2e;
    color: #e0e0e0;
  }

  .instructions-content {
    background: #252538;
  }

  .instruction-step {
    background: #2a2a3e;
    color: #e0e0e0;
  }

  .instruction-step.active {
    background: #2a2a3e;
    border-left-color: #8b9aff;
  }

  .instruction-step h3 {
    color: #e0e0e0;
  }

  .instruction-step p {
    color: #bbb;
  }

  .timer-display {
    color: #8b9aff;
  }

  .stat-value {
    color: #8b9aff;
  }

  .breathing-stats {
    border-top-color: #333;
  }
}




